<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>js demo</title>
	</head>
	<body>
		<h1>这是一个web页面</h1>
		
		<p id="p01">我是一个段落</p>
		
		<button onclick="myFunction()">点我</button>
		<br />
		<button onclick="this.innerHTML='this chanage'">点我</button>
		<br />
		<script>
			window.alert("window.alert");
			
			document.write(Date());
			
			document.getElementById("p01").innerHTML = "被改变的段落";
			
			function myFunction(){
				document.write(Date());
			}
		</script>
	</body>
</html>
